Optimal. Leaf size=233 \[ \frac {\left (2 \sqrt {a}-3 \sqrt {b}\right ) \tanh ^{-1}\left (\frac {\sqrt {\sqrt {a}-\sqrt {b}} \tanh (c+d x)}{\sqrt [4]{a}}\right )}{8 \sqrt [4]{a} \left (\sqrt {a}-\sqrt {b}\right )^{3/2} b^{3/2} d}-\frac {\left (2 \sqrt {a}+3 \sqrt {b}\right ) \tanh ^{-1}\left (\frac {\sqrt {\sqrt {a}+\sqrt {b}} \tanh (c+d x)}{\sqrt [4]{a}}\right )}{8 \sqrt [4]{a} \left (\sqrt {a}+\sqrt {b}\right )^{3/2} b^{3/2} d}+\frac {\tanh (c+d x)}{4 (a-b) b d}+\frac {\text {sech}^2(c+d x) \tanh ^3(c+d x)}{4 b d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.23, antiderivative size = 233, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.208, Rules used = {3296, 1134,
1293, 1180, 214} \begin {gather*} \frac {\left (2 \sqrt {a}-3 \sqrt {b}\right ) \tanh ^{-1}\left (\frac {\sqrt {\sqrt {a}-\sqrt {b}} \tanh (c+d x)}{\sqrt [4]{a}}\right )}{8 \sqrt [4]{a} b^{3/2} d \left (\sqrt {a}-\sqrt {b}\right )^{3/2}}-\frac {\left (2 \sqrt {a}+3 \sqrt {b}\right ) \tanh ^{-1}\left (\frac {\sqrt {\sqrt {a}+\sqrt {b}} \tanh (c+d x)}{\sqrt [4]{a}}\right )}{8 \sqrt [4]{a} b^{3/2} d \left (\sqrt {a}+\sqrt {b}\right )^{3/2}}+\frac {\tanh (c+d x)}{4 b d (a-b)}+\frac {\tanh ^3(c+d x) \text {sech}^2(c+d x)}{4 b d \left ((a-b) \tanh ^4(c+d x)-2 a \tanh ^2(c+d x)+a\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 214
Rule 1134
Rule 1180
Rule 1293
Rule 3296
Rubi steps
\begin {align*} \int \frac {\sinh ^6(c+d x)}{\left (a-b \sinh ^4(c+d x)\right )^2} \, dx &=\frac {\text {Subst}\left (\int \frac {x^6}{\left (a-2 a x^2+(a-b) x^4\right )^2} \, dx,x,\tanh (c+d x)\right )}{d}\\ &=\frac {\text {sech}^2(c+d x) \tanh ^3(c+d x)}{4 b d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )}-\frac {\text {Subst}\left (\int \frac {x^2 \left (6 a-2 a x^2\right )}{a-2 a x^2+(a-b) x^4} \, dx,x,\tanh (c+d x)\right )}{8 a b d}\\ &=\frac {\tanh (c+d x)}{4 (a-b) b d}+\frac {\text {sech}^2(c+d x) \tanh ^3(c+d x)}{4 b d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )}+\frac {\text {Subst}\left (\int \frac {-2 a^2-2 a (a-3 b) x^2}{a-2 a x^2+(a-b) x^4} \, dx,x,\tanh (c+d x)\right )}{8 a (a-b) b d}\\ &=\frac {\tanh (c+d x)}{4 (a-b) b d}+\frac {\text {sech}^2(c+d x) \tanh ^3(c+d x)}{4 b d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )}-\frac {\left (a-\frac {2 \sqrt {a} (a-2 b)}{\sqrt {b}}-3 b\right ) \text {Subst}\left (\int \frac {1}{-a+\sqrt {a} \sqrt {b}+(a-b) x^2} \, dx,x,\tanh (c+d x)\right )}{8 (a-b) b d}-\frac {\left (a+\frac {2 \sqrt {a} (a-2 b)}{\sqrt {b}}-3 b\right ) \text {Subst}\left (\int \frac {1}{-a-\sqrt {a} \sqrt {b}+(a-b) x^2} \, dx,x,\tanh (c+d x)\right )}{8 (a-b) b d}\\ &=\frac {\left (2 \sqrt {a}-3 \sqrt {b}\right ) \tanh ^{-1}\left (\frac {\sqrt {\sqrt {a}-\sqrt {b}} \tanh (c+d x)}{\sqrt [4]{a}}\right )}{8 \sqrt [4]{a} \left (\sqrt {a}-\sqrt {b}\right )^{3/2} b^{3/2} d}-\frac {\left (2 \sqrt {a}+3 \sqrt {b}\right ) \tanh ^{-1}\left (\frac {\sqrt {\sqrt {a}+\sqrt {b}} \tanh (c+d x)}{\sqrt [4]{a}}\right )}{8 \sqrt [4]{a} \left (\sqrt {a}+\sqrt {b}\right )^{3/2} b^{3/2} d}+\frac {\tanh (c+d x)}{4 (a-b) b d}+\frac {\text {sech}^2(c+d x) \tanh ^3(c+d x)}{4 b d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.84, size = 238, normalized size = 1.02 \begin {gather*} \frac {\frac {\sqrt {b} \left (-2 a+\sqrt {a} \sqrt {b}+3 b\right ) \text {ArcTan}\left (\frac {\left (\sqrt {a}-\sqrt {b}\right ) \tanh (c+d x)}{\sqrt {-a+\sqrt {a} \sqrt {b}}}\right )}{\sqrt {-a+\sqrt {a} \sqrt {b}}}+\frac {\sqrt {b} \left (-2 a-\sqrt {a} \sqrt {b}+3 b\right ) \tanh ^{-1}\left (\frac {\left (\sqrt {a}+\sqrt {b}\right ) \tanh (c+d x)}{\sqrt {a+\sqrt {a} \sqrt {b}}}\right )}{\sqrt {a+\sqrt {a} \sqrt {b}}}-\frac {4 b (-2 a-b+b \cosh (2 (c+d x))) \sinh (2 (c+d x))}{8 a-3 b+4 b \cosh (2 (c+d x))-b \cosh (4 (c+d x))}}{8 (a-b) b^2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 1.95, size = 305, normalized size = 1.31
method | result | size |
derivativedivides | \(\frac {-\frac {128 \left (-\frac {a \left (\tanh ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{256 b \left (a -b \right )}+\frac {\left (a +4 b \right ) \left (\tanh ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{256 b \left (a -b \right )}+\frac {\left (a +4 b \right ) \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{256 b \left (a -b \right )}-\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{256 b \left (a -b \right )}\right )}{a \left (\tanh ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-4 a \left (\tanh ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+6 a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-16 b \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-4 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a}-\frac {\munderset {\textit {\_R} =\RootOf \left (a \,\textit {\_Z}^{8}-4 a \,\textit {\_Z}^{6}+\left (6 a -16 b \right ) \textit {\_Z}^{4}-4 a \,\textit {\_Z}^{2}+a \right )}{\sum }\frac {\left (-a \,\textit {\_R}^{6}+\left (-5 a +12 b \right ) \textit {\_R}^{4}+\left (5 a -12 b \right ) \textit {\_R}^{2}+a \right ) \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-\textit {\_R} \right )}{\textit {\_R}^{7} a -3 \textit {\_R}^{5} a +3 \textit {\_R}^{3} a -8 \textit {\_R}^{3} b -\textit {\_R} a}}{16 b \left (a -b \right )}}{d}\) | \(305\) |
default | \(\frac {-\frac {128 \left (-\frac {a \left (\tanh ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{256 b \left (a -b \right )}+\frac {\left (a +4 b \right ) \left (\tanh ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{256 b \left (a -b \right )}+\frac {\left (a +4 b \right ) \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{256 b \left (a -b \right )}-\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{256 b \left (a -b \right )}\right )}{a \left (\tanh ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-4 a \left (\tanh ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+6 a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-16 b \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-4 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a}-\frac {\munderset {\textit {\_R} =\RootOf \left (a \,\textit {\_Z}^{8}-4 a \,\textit {\_Z}^{6}+\left (6 a -16 b \right ) \textit {\_Z}^{4}-4 a \,\textit {\_Z}^{2}+a \right )}{\sum }\frac {\left (-a \,\textit {\_R}^{6}+\left (-5 a +12 b \right ) \textit {\_R}^{4}+\left (5 a -12 b \right ) \textit {\_R}^{2}+a \right ) \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-\textit {\_R} \right )}{\textit {\_R}^{7} a -3 \textit {\_R}^{5} a +3 \textit {\_R}^{3} a -8 \textit {\_R}^{3} b -\textit {\_R} a}}{16 b \left (a -b \right )}}{d}\) | \(305\) |
risch | \(\frac {2 a \,{\mathrm e}^{6 d x +6 c}-b \,{\mathrm e}^{6 d x +6 c}-8 a \,{\mathrm e}^{4 d x +4 c}+3 b \,{\mathrm e}^{4 d x +4 c}-2 a \,{\mathrm e}^{2 d x +2 c}-3 b \,{\mathrm e}^{2 d x +2 c}+b}{2 b d \left (a -b \right ) \left (-b \,{\mathrm e}^{8 d x +8 c}+4 b \,{\mathrm e}^{6 d x +6 c}+16 a \,{\mathrm e}^{4 d x +4 c}-6 b \,{\mathrm e}^{4 d x +4 c}+4 b \,{\mathrm e}^{2 d x +2 c}-b \right )}+\left (\munderset {\textit {\_R} =\RootOf \left (\left (65536 a^{4} b^{6} d^{4}-196608 a^{3} b^{7} d^{4}+196608 a^{2} b^{8} d^{4}-65536 a \,b^{9} d^{4}\right ) \textit {\_Z}^{4}+\left (-2048 a^{3} d^{2} b^{3}+7680 a^{2} b^{4} d^{2}-7680 a \,b^{5} d^{2}\right ) \textit {\_Z}^{2}+16 a^{2}-72 a b +81 b^{2}\right )}{\sum }\textit {\_R} \ln \left ({\mathrm e}^{2 d x +2 c}+\left (-\frac {8192 a^{5} b^{5} d^{3}}{20 a^{2} b^{2}-81 a \,b^{3}+81 b^{4}}+\frac {49152 a^{4} b^{6} d^{3}}{20 a^{2} b^{2}-81 a \,b^{3}+81 b^{4}}-\frac {98304 a^{3} b^{7} d^{3}}{20 a^{2} b^{2}-81 a \,b^{3}+81 b^{4}}+\frac {81920 a^{2} b^{8} d^{3}}{20 a^{2} b^{2}-81 a \,b^{3}+81 b^{4}}-\frac {24576 a \,b^{9} d^{3}}{20 a^{2} b^{2}-81 a \,b^{3}+81 b^{4}}\right ) \textit {\_R}^{3}+\left (-\frac {2048 d^{2} b^{3} a^{5}}{20 a^{2} b^{2}-81 a \,b^{3}+81 b^{4}}+\frac {10752 d^{2} b^{4} a^{4}}{20 a^{2} b^{2}-81 a \,b^{3}+81 b^{4}}-\frac {19968 d^{2} b^{5} a^{3}}{20 a^{2} b^{2}-81 a \,b^{3}+81 b^{4}}+\frac {15872 d^{2} b^{6} a^{2}}{20 a^{2} b^{2}-81 a \,b^{3}+81 b^{4}}-\frac {4608 d^{2} b^{7} a}{20 a^{2} b^{2}-81 a \,b^{3}+81 b^{4}}\right ) \textit {\_R}^{2}+\left (\frac {128 a^{4} b^{2} d}{20 a^{2} b^{2}-81 a \,b^{3}+81 b^{4}}-\frac {1184 a^{3} b^{3} d}{20 a^{2} b^{2}-81 a \,b^{3}+81 b^{4}}+\frac {3136 a^{2} b^{4} d}{20 a^{2} b^{2}-81 a \,b^{3}+81 b^{4}}-\frac {2592 a \,b^{5} d}{20 a^{2} b^{2}-81 a \,b^{3}+81 b^{4}}\right ) \textit {\_R} +\frac {32 a^{4}}{20 a^{2} b^{2}-81 a \,b^{3}+81 b^{4}}-\frac {192 a^{3} b}{20 a^{2} b^{2}-81 a \,b^{3}+81 b^{4}}+\frac {370 a^{2} b^{2}}{20 a^{2} b^{2}-81 a \,b^{3}+81 b^{4}}-\frac {189 a \,b^{3}}{20 a^{2} b^{2}-81 a \,b^{3}+81 b^{4}}-\frac {81 b^{4}}{20 a^{2} b^{2}-81 a \,b^{3}+81 b^{4}}\right )\right )\) | \(873\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 6045 vs.
\(2 (181) = 362\).
time = 0.63, size = 6045, normalized size = 25.94 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.10, size = 153, normalized size = 0.66 \begin {gather*} -\frac {2 \, a e^{\left (6 \, d x + 6 \, c\right )} - b e^{\left (6 \, d x + 6 \, c\right )} - 8 \, a e^{\left (4 \, d x + 4 \, c\right )} + 3 \, b e^{\left (4 \, d x + 4 \, c\right )} - 2 \, a e^{\left (2 \, d x + 2 \, c\right )} - 3 \, b e^{\left (2 \, d x + 2 \, c\right )} + b}{2 \, {\left (a b - b^{2}\right )} {\left (b e^{\left (8 \, d x + 8 \, c\right )} - 4 \, b e^{\left (6 \, d x + 6 \, c\right )} - 16 \, a e^{\left (4 \, d x + 4 \, c\right )} + 6 \, b e^{\left (4 \, d x + 4 \, c\right )} - 4 \, b e^{\left (2 \, d x + 2 \, c\right )} + b\right )} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\mathrm {sinh}\left (c+d\,x\right )}^6}{{\left (a-b\,{\mathrm {sinh}\left (c+d\,x\right )}^4\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________